package cn.tedu.html;

import java.util.Arrays;
import java.util.Objects;

/**
 * @author :Colin
 * @version 创建时间: 2021/7/7 9:25
 */
public class HtmlGet {

    public static void main(String[] args) {
        String site="http://127.0.0.1:8848/cgb2015/july6-3.%E7%BB%83%E4%B9%A0form%E8%A1%A8%E5%8D%95.html?name=%E6%9D%8E%E6%B5%B7%E6%B6%9B&age=26&gender=1&gender=2&gender=3&edu=1&entertime=2021-07-01";
        String[] a=site.split("\\?");

        String[] b=a[1].split("&");
        String[] b1=site.split("\\?")[1].split("&");
        System.out.println(Arrays.toString(b));
        System.out.println(Arrays.toString(b1));
        System.out.println(b1.equals(b));
        for(String str:b1){
            String data=str.split("=")[1];
            System.out.println(data);
        }

    }


}

